package com.dm.yyxr.pojo.dto;

import lombok.Data;

import java.text.SimpleDateFormat;
import java.util.Date;

@Data
public class SupplyAndConsumptions {
    Integer admin_code;
    String month;
    Integer community_code;

    public void setMonth(Date month) {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM");
        this.month = simpleDateFormat.format(month);
    }
}
